package homework3;

import java.util.Scanner;

public class Chapter05 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int h=0;
        while (h<1){
            System.out.println("输入等腰三角形高度：");
            h=sc.nextInt();
        }
        for (int i=1;i<=h;i++){
            for (int j=1;j<=h-i;j++){
                System.out.print(" ");
            }
            for (int k=1;k<=2*i-1;k++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
